<?php
require_once("DbFactory.class.php");
class Configs extends Base
{
    private $_configId;
    private $_name;
    private $_description;
    private $_alias;

    protected function getTableName()
    {
        return "configs";
    }


    protected function getPrimaryKey()
    {
        return "alias";
        // TODO: Implement getPrimaryKey() method.
    }

    public function setAlias($alias)
    {
        $this->_alias = $alias;
    }

    public function getAlias()
    {
        return $this->_alias;
    }

    public function setConfigId($configId)
    {
        $this->_configId = $configId;
    }

    public function getConfigId()
    {
        return $this->_configId;
    }

    public function setDescription($description)
    {
        $this->_description = $description;
    }

    public function getDescription()
    {
        return $this->_description;
    }

    public function setName($name)
    {
        $this->_name = $name;
    }

    public function getName()
    {
        return $this->_name;
    }

    protected function competeRecord($post)
    {
        return array(
            "description" => $post['description']
        );
    }


}

?>